openldap.git
5 years agoMerge openldap (2.4.49+dfsg-3) import into refs/heads/workingbranch
Ryan Tandy [Sat, 4 Apr 2020 17:43:56 +0000 (18:43 +0100)]
Merge openldap (2.4.49+dfsg-3) import into refs/heads/workingbranch

5 years ago[PATCH] ITS#9171 Insert callback in the right place
Ondřej Kuzník [Fri, 21 Feb 2020 10:26:53 +0000 (10:26 +0000)]
[PATCH] ITS#9171 Insert callback in the right place

Gbp-Pq: Name ITS-9171-Insert-callback-in-the-right-place.patch

5 years ago[PATCH] ITS#9086 Add debug logging for more GnuTLS errors
Ryan Tandy [Sun, 22 Sep 2019 03:08:30 +0000 (03:08 +0000)]
[PATCH] ITS#9086 Add debug logging for more GnuTLS errors

Gbp-Pq: Name ITS-9086-Add-debug-logging-for-more-GnuTLS-errors.patch

5 years agoset-maintainer-name
Debian OpenLDAP Maintainers [Sat, 4 Apr 2020 17:43:56 +0000 (18:43 +0100)]
set-maintainer-name

Gbp-Pq: Name set-maintainer-name

5 years agoITS6035-olcauthzregex-needs-restart
Debian OpenLDAP Maintainers [Sat, 4 Apr 2020 17:43:56 +0000 (18:43 +0100)]
ITS6035-olcauthzregex-needs-restart

Gbp-Pq: Name ITS6035-olcauthzregex-needs-restart.patch

5 years agodon't second-guess BDB ABI
Steve Langasek [Sat, 4 Apr 2020 17:43:56 +0000 (18:43 +0100)]
don't second-guess BDB ABI

Bug-Debian: http://bugs.debian.org/651333
Forwarded: not-needed

OpenLDAP upstream conservatively assumes that any change to the version
number of libdb can result in an API-breaking change that could impact
the database.  In Debian, we know that such changes require bumping the
library soname and changing the package name, and demand such rigor from
our package maintainers even when upstreams don't deliver; so any such
check in the source code works against the packaging system by forcing
database upgrades when we know none are required.  Disable this check
so we rely on the packaging system to do its job.

Gbp-Pq: Name no-bdb-ABI-second-guessing

5 years agoSwitch to lt_dlopenadvise() so back_perl can be opened with RTLD_GLOBAL. Open all...
Jan-Marek Glogowski [Tue, 18 May 2010 15:47:05 +0000 (17:47 +0200)]
Switch to lt_dlopenadvise() so back_perl can be opened with RTLD_GLOBAL. Open all modules with RTLD_GLOBAL, needed so that back_perl can load non-trivial Perl extensions that require symbols from back_perl.so itself.

Bug-Debian: http://bugs.debian.org/327585

Gbp-Pq: Name switch-to-lt_dlopenadvise-to-get-RTLD_GLOBAL-set.diff

5 years agofix-build-top-mk
Debian OpenLDAP Maintainers [Sat, 4 Apr 2020 17:43:56 +0000 (18:43 +0100)]
fix-build-top-mk

Gbp-Pq: Name fix-build-top-mk

5 years agoadd-tlscacert-option-to-ldap-conf
Debian OpenLDAP Maintainers [Sat, 4 Apr 2020 17:43:56 +0000 (18:43 +0100)]
add-tlscacert-option-to-ldap-conf

Gbp-Pq: Name add-tlscacert-option-to-ldap-conf

5 years agoldap-conf-tls-cacertdir
Debian OpenLDAP Maintainers [Sat, 4 Apr 2020 17:43:56 +0000 (18:43 +0100)]
ldap-conf-tls-cacertdir

Gbp-Pq: Name ldap-conf-tls-cacertdir

5 years agolastbind-makefile-manpage
Debian OpenLDAP Maintainers [Sat, 4 Apr 2020 17:43:56 +0000 (18:43 +0100)]
lastbind-makefile-manpage

Gbp-Pq: Name lastbind-makefile-manpage

5 years ago[PATCH] contrib/smbk5pwd: add man page, install it too
Peter Marschall [Sun, 26 Jul 2015 13:04:26 +0000 (15:04 +0200)]
[PATCH] contrib/smbk5pwd: add man page, install it too

Add a manual page slapo-smbk5pwd.5 and update smbk5pwd's Makefile to
install the new manual page.

This patch is derived from the corresponding patch upstreamed in ITS#8205

Gbp-Pq: Name smbk5pwd-makefile-manpage

5 years agocontrib-makefiles
Debian OpenLDAP Maintainers [Sat, 4 Apr 2020 17:43:56 +0000 (18:43 +0100)]
contrib-makefiles

Gbp-Pq: Name contrib-makefiles

5 years agoImport Argon2 password module from upstream git
Debian OpenLDAP Maintainers [Sat, 4 Apr 2020 17:43:56 +0000 (18:43 +0100)]
Import Argon2 password module from upstream git

Origin: upstream, https://git.openldap.org/openldap/openldap/-/tree/OPENLDAP_REL_ENG_2_5/contrib/slapd-modules/passwd/argon2
Bug-Debian: https://bugs.debian.org/920283
Last-Update: 2020-04-04

The files are updated to upstream commit af5ed7c6e2.

Gbp-Pq: Name argon2.patch

5 years agodo-not-second-guess-sonames
Debian OpenLDAP Maintainers [Sat, 4 Apr 2020 17:43:56 +0000 (18:43 +0100)]
do-not-second-guess-sonames

Rip out code that second-guesses the libsasl soname / Debian shlibs.  If
cyrus sasl upstream is breaking the ABI, this needs to be fixed upstream
there, not kludged around upstream here!

Debian bug #546885

Upstream ITS #6302 filed.

Gbp-Pq: Name do-not-second-guess-sonames

5 years agogetaddrinfo-is-threadsafe
Steve Langasek [Sat, 4 Apr 2020 17:43:56 +0000 (18:43 +0100)]
getaddrinfo-is-threadsafe

OpenLDAP upstream conservatively assumes that certain resolver functions
(getaddrinfo, getnameinfo, res_query, dn_expand) are not re-entrant; but we
know that the glibc implementations of these functions are thread-safe, so
we should bypass the use of this mutex.  This fixes a locking problem when
an application uses libldap and libnss-ldap is also used for hosts
resolution.

Closes Debian bug #340601.

Not suitable for forwarding upstream; might be made suitable by adding a
configure-time check for glibc and disabling the mutex only on known
thread-safe implementations.

Gbp-Pq: Name getaddrinfo-is-threadsafe

5 years agolibldap-symbol-versions
Debian OpenLDAP Maintainers [Sat, 4 Apr 2020 17:43:56 +0000 (18:43 +0100)]
libldap-symbol-versions

Add symbol versioning to the public LDAP libraries.  This is required for
library transitions, such as the current transition from 2.1 to 2.4,
since programs will sometimes have both libraries loaded by different
dependency chains during the transition.

Not yet contributed upstream.

Upstream ITS #5365 filed requesting symbol versioning for libldap and
libber.

Gbp-Pq: Name libldap-symbol-versions

5 years agosasl-default-path
Debian OpenLDAP Maintainers [Sat, 4 Apr 2020 17:43:56 +0000 (18:43 +0100)]
sasl-default-path

Add /etc/ldap/sasl2 to the SASL configuration search path.

Not submitted upstream.  Somewhat Debian-specific and probably not of
interest upstream.

Gbp-Pq: Name sasl-default-path

5 years agoindex-files-created-as-root
Debian OpenLDAP Maintainers [Sat, 4 Apr 2020 17:43:56 +0000 (18:43 +0100)]
index-files-created-as-root

Document in the man page that slapindex should be run as the same user
as slapd, and print a warning if it's run as root (since Debian defaults
to running slapd as openldap).

Not suitable for upstream in this form.  This patch needs to be reworked
to check the BerkeleyDB database ownership and only warn if running as
root with a database that's not owned by root.

Upstream ITS #5356 filed requesting better handling of this.  Current
upstream discussion leans towards putting the check into the database
backend and aborting if slapd is run as a different user than the database
owner, which is an even better fix.

Gbp-Pq: Name index-files-created-as-root

5 years agowrong-database-location
Debian OpenLDAP Maintainers [Sat, 4 Apr 2020 17:43:56 +0000 (18:43 +0100)]
wrong-database-location

Move the default slapd database location to /var/lib/ldap instead of
/var/openldap-data.

Debian-specific.

Gbp-Pq: Name wrong-database-location

5 years agoldapi-socket-place
Debian OpenLDAP Maintainers [Sat, 4 Apr 2020 17:43:56 +0000 (18:43 +0100)]
ldapi-socket-place

Move the ldapi socket to /var/run/slapd from /var/run, since /var/run
is only writable by root and slapd runs as openldap.

Debian-specific.

Gbp-Pq: Name ldapi-socket-place

5 years agoslapi-errorlog-file
Debian OpenLDAP Maintainers [Sat, 4 Apr 2020 17:43:56 +0000 (18:43 +0100)]
slapi-errorlog-file

The slapi error log file defaults to /var/errors given our setting
of --localstatedir.  Move it to /var/log/slapi-errors instead.

Debian-specific.

Gbp-Pq: Name slapi-errorlog-file

5 years agoevolution-ntlm
Debian OpenLDAP Maintainers [Sat, 4 Apr 2020 17:43:56 +0000 (18:43 +0100)]
evolution-ntlm

Patch from evolution-exchange (2.10.3).  The ldap_ntlm_bind function is
actually called by evolution-data-server, checked at version 1.12.2.
Without this patch, the Exchange addressbook integration uses simple binds
with cleartext passwords.

Russ checked with openldap-software for upstream's opinion on this patch
on 2007-12-21.  Upstream had never received it as a patch submission and
given that it's apparently only for older Exchange servers that can't do
SASL and DIGEST-MD5, it's not very appealing.

Bug#457374 filed against evolution-data-server asking if this support is
still required on 2007-12-21.

Gbp-Pq: Name evolution-ntlm

5 years agoman-slapd
Debian OpenLDAP Maintainers [Sat, 4 Apr 2020 17:43:56 +0000 (18:43 +0100)]
man-slapd

Patch the slapd man page to not refer to a header file that isn't
installed with the slapd package and to reference the correct path
for slapd.

Debian-specific.

Gbp-Pq: Name man-slapd

5 years agoReplace upstream version with Debian version in version strings
Ryan Tandy [Sat, 4 Apr 2020 17:43:56 +0000 (18:43 +0100)]
Replace upstream version with Debian version in version strings

Forwarded: not-needed

Gbp-Pq: Name debian-version

5 years agoopenldap (2.4.49+dfsg-3) unstable; urgency=medium
Ryan Tandy [Sat, 4 Apr 2020 17:43:56 +0000 (18:43 +0100)]
openldap (2.4.49+dfsg-3) unstable; urgency=medium

  * Drop patch no-AM_INIT_AUTOMAKE. Instead, configure dh_autoreconf to skip
    automake by setting AUTOMAKE=/bin/true. (Closes: #864637)
  * debian/patches/debian-version: Show Debian version, instead of upstream
    version, in version strings.
  * Add ${perl:Depends} to slapd Depends to silence a dpkg-gencontrol warning.
    This is practically a no-op since slapd explicitly Depends on perl because
    of the maintainer scripts.
  * Import the Argon2 password module from upstream git and install it in
    slapd-contrib. New Build-Depends: libsodium-dev. (Closes: #920283)

[dgit import unpatched openldap 2.4.49+dfsg-3]

5 years agoImport openldap_2.4.49+dfsg-3.debian.tar.xz
Ryan Tandy [Sat, 4 Apr 2020 17:43:56 +0000 (18:43 +0100)]
Import openldap_2.4.49+dfsg-3.debian.tar.xz

[dgit import tarball openldap 2.4.49+dfsg-3 openldap_2.4.49+dfsg-3.debian.tar.xz]

6 years agoMerge openldap (2.4.49+dfsg-2) import into refs/heads/workingbranch
Ryan Tandy [Thu, 5 Mar 2020 20:59:46 +0000 (20:59 +0000)]
Merge openldap (2.4.49+dfsg-2) import into refs/heads/workingbranch

6 years ago[PATCH] ITS#9171 Insert callback in the right place
Ondřej Kuzník [Fri, 21 Feb 2020 10:26:53 +0000 (10:26 +0000)]
[PATCH] ITS#9171 Insert callback in the right place

Gbp-Pq: Name ITS-9171-Insert-callback-in-the-right-place.patch

6 years ago[PATCH] ITS#9086 Add debug logging for more GnuTLS errors
Ryan Tandy [Sun, 22 Sep 2019 03:08:30 +0000 (03:08 +0000)]
[PATCH] ITS#9086 Add debug logging for more GnuTLS errors

Gbp-Pq: Name ITS-9086-Add-debug-logging-for-more-GnuTLS-errors.patch

6 years agoset-maintainer-name
Debian OpenLDAP Maintainers [Thu, 5 Mar 2020 20:59:46 +0000 (20:59 +0000)]
set-maintainer-name

Gbp-Pq: Name set-maintainer-name

6 years agoITS6035-olcauthzregex-needs-restart
Debian OpenLDAP Maintainers [Thu, 5 Mar 2020 20:59:46 +0000 (20:59 +0000)]
ITS6035-olcauthzregex-needs-restart

Gbp-Pq: Name ITS6035-olcauthzregex-needs-restart.patch

6 years agodon't second-guess BDB ABI
Steve Langasek [Thu, 5 Mar 2020 20:59:46 +0000 (20:59 +0000)]
don't second-guess BDB ABI

Bug-Debian: http://bugs.debian.org/651333
Forwarded: not-needed

OpenLDAP upstream conservatively assumes that any change to the version
number of libdb can result in an API-breaking change that could impact
the database.  In Debian, we know that such changes require bumping the
library soname and changing the package name, and demand such rigor from
our package maintainers even when upstreams don't deliver; so any such
check in the source code works against the packaging system by forcing
database upgrades when we know none are required.  Disable this check
so we rely on the packaging system to do its job.

Gbp-Pq: Name no-bdb-ABI-second-guessing

6 years agoSwitch to lt_dlopenadvise() so back_perl can be opened with RTLD_GLOBAL. Open all...
Jan-Marek Glogowski [Tue, 18 May 2010 15:47:05 +0000 (17:47 +0200)]
Switch to lt_dlopenadvise() so back_perl can be opened with RTLD_GLOBAL. Open all modules with RTLD_GLOBAL, needed so that back_perl can load non-trivial Perl extensions that require symbols from back_perl.so itself.

Bug-Debian: http://bugs.debian.org/327585

Gbp-Pq: Name switch-to-lt_dlopenadvise-to-get-RTLD_GLOBAL-set.diff

6 years agodon't use AM_INIT_AUTOMAKE macro when we aren't using automake
Steve Langasek [Thu, 5 Mar 2020 20:59:46 +0000 (20:59 +0000)]
don't use AM_INIT_AUTOMAKE macro when we aren't using automake

Calling AM_INIT_AUTOMAKE() in configure.in serves no purpose if we're not
using automake, and it confuses autoreconf.  Use AC_INIT() instead.

Gbp-Pq: Name no-AM_INIT_AUTOMAKE

6 years agofix-build-top-mk
Debian OpenLDAP Maintainers [Thu, 5 Mar 2020 20:59:46 +0000 (20:59 +0000)]
fix-build-top-mk

Gbp-Pq: Name fix-build-top-mk

6 years agoadd-tlscacert-option-to-ldap-conf
Debian OpenLDAP Maintainers [Thu, 5 Mar 2020 20:59:46 +0000 (20:59 +0000)]
add-tlscacert-option-to-ldap-conf

Gbp-Pq: Name add-tlscacert-option-to-ldap-conf

6 years agoldap-conf-tls-cacertdir
Debian OpenLDAP Maintainers [Thu, 5 Mar 2020 20:59:46 +0000 (20:59 +0000)]
ldap-conf-tls-cacertdir

Gbp-Pq: Name ldap-conf-tls-cacertdir

6 years agolastbind-makefile-manpage
Debian OpenLDAP Maintainers [Thu, 5 Mar 2020 20:59:46 +0000 (20:59 +0000)]
lastbind-makefile-manpage

Gbp-Pq: Name lastbind-makefile-manpage

6 years ago[PATCH] contrib/smbk5pwd: add man page, install it too
Peter Marschall [Sun, 26 Jul 2015 13:04:26 +0000 (15:04 +0200)]
[PATCH] contrib/smbk5pwd: add man page, install it too

Add a manual page slapo-smbk5pwd.5 and update smbk5pwd's Makefile to
install the new manual page.

This patch is derived from the corresponding patch upstreamed in ITS#8205

Gbp-Pq: Name smbk5pwd-makefile-manpage

6 years agocontrib-makefiles
Debian OpenLDAP Maintainers [Thu, 5 Mar 2020 20:59:46 +0000 (20:59 +0000)]
contrib-makefiles

Gbp-Pq: Name contrib-makefiles

6 years agodo-not-second-guess-sonames
Debian OpenLDAP Maintainers [Thu, 5 Mar 2020 20:59:46 +0000 (20:59 +0000)]
do-not-second-guess-sonames

Rip out code that second-guesses the libsasl soname / Debian shlibs.  If
cyrus sasl upstream is breaking the ABI, this needs to be fixed upstream
there, not kludged around upstream here!

Debian bug #546885

Upstream ITS #6302 filed.

Gbp-Pq: Name do-not-second-guess-sonames

6 years agogetaddrinfo-is-threadsafe
Steve Langasek [Thu, 5 Mar 2020 20:59:46 +0000 (20:59 +0000)]
getaddrinfo-is-threadsafe

OpenLDAP upstream conservatively assumes that certain resolver functions
(getaddrinfo, getnameinfo, res_query, dn_expand) are not re-entrant; but we
know that the glibc implementations of these functions are thread-safe, so
we should bypass the use of this mutex.  This fixes a locking problem when
an application uses libldap and libnss-ldap is also used for hosts
resolution.

Closes Debian bug #340601.

Not suitable for forwarding upstream; might be made suitable by adding a
configure-time check for glibc and disabling the mutex only on known
thread-safe implementations.

Gbp-Pq: Name getaddrinfo-is-threadsafe

6 years agolibldap-symbol-versions
Debian OpenLDAP Maintainers [Thu, 5 Mar 2020 20:59:46 +0000 (20:59 +0000)]
libldap-symbol-versions

Add symbol versioning to the public LDAP libraries.  This is required for
library transitions, such as the current transition from 2.1 to 2.4,
since programs will sometimes have both libraries loaded by different
dependency chains during the transition.

Not yet contributed upstream.

Upstream ITS #5365 filed requesting symbol versioning for libldap and
libber.

Gbp-Pq: Name libldap-symbol-versions

6 years agosasl-default-path
Debian OpenLDAP Maintainers [Thu, 5 Mar 2020 20:59:46 +0000 (20:59 +0000)]
sasl-default-path

Add /etc/ldap/sasl2 to the SASL configuration search path.

Not submitted upstream.  Somewhat Debian-specific and probably not of
interest upstream.

Gbp-Pq: Name sasl-default-path

6 years agoindex-files-created-as-root
Debian OpenLDAP Maintainers [Thu, 5 Mar 2020 20:59:46 +0000 (20:59 +0000)]
index-files-created-as-root

Document in the man page that slapindex should be run as the same user
as slapd, and print a warning if it's run as root (since Debian defaults
to running slapd as openldap).

Not suitable for upstream in this form.  This patch needs to be reworked
to check the BerkeleyDB database ownership and only warn if running as
root with a database that's not owned by root.

Upstream ITS #5356 filed requesting better handling of this.  Current
upstream discussion leans towards putting the check into the database
backend and aborting if slapd is run as a different user than the database
owner, which is an even better fix.

Gbp-Pq: Name index-files-created-as-root

6 years agowrong-database-location
Debian OpenLDAP Maintainers [Thu, 5 Mar 2020 20:59:46 +0000 (20:59 +0000)]
wrong-database-location

Move the default slapd database location to /var/lib/ldap instead of
/var/openldap-data.

Debian-specific.

Gbp-Pq: Name wrong-database-location

6 years agoldapi-socket-place
Debian OpenLDAP Maintainers [Thu, 5 Mar 2020 20:59:46 +0000 (20:59 +0000)]
ldapi-socket-place

Move the ldapi socket to /var/run/slapd from /var/run, since /var/run
is only writable by root and slapd runs as openldap.

Debian-specific.

Gbp-Pq: Name ldapi-socket-place

6 years agoslapi-errorlog-file
Debian OpenLDAP Maintainers [Thu, 5 Mar 2020 20:59:46 +0000 (20:59 +0000)]
slapi-errorlog-file

The slapi error log file defaults to /var/errors given our setting
of --localstatedir.  Move it to /var/log/slapi-errors instead.

Debian-specific.

Gbp-Pq: Name slapi-errorlog-file

6 years agoevolution-ntlm
Debian OpenLDAP Maintainers [Thu, 5 Mar 2020 20:59:46 +0000 (20:59 +0000)]
evolution-ntlm

Patch from evolution-exchange (2.10.3).  The ldap_ntlm_bind function is
actually called by evolution-data-server, checked at version 1.12.2.
Without this patch, the Exchange addressbook integration uses simple binds
with cleartext passwords.

Russ checked with openldap-software for upstream's opinion on this patch
on 2007-12-21.  Upstream had never received it as a patch submission and
given that it's apparently only for older Exchange servers that can't do
SASL and DIGEST-MD5, it's not very appealing.

Bug#457374 filed against evolution-data-server asking if this support is
still required on 2007-12-21.

Gbp-Pq: Name evolution-ntlm

6 years agoman-slapd
Debian OpenLDAP Maintainers [Thu, 5 Mar 2020 20:59:46 +0000 (20:59 +0000)]
man-slapd

Patch the slapd man page to not refer to a header file that isn't
installed with the slapd package and to reference the correct path
for slapd.

Debian-specific.

Gbp-Pq: Name man-slapd

6 years agoopenldap (2.4.49+dfsg-2) unstable; urgency=medium
Ryan Tandy [Thu, 5 Mar 2020 20:59:46 +0000 (20:59 +0000)]
openldap (2.4.49+dfsg-2) unstable; urgency=medium

  * slapd.README.Debian: Document the initial setup performed by slapd's
    maintainer scripts in more detail. Thanks to Karl O. Pinc.
    (Closes: #952501)
  * Import upstream patch to fix slapd crashing in certain configurations when
    a client attempts a login to a locked account.
    (ITS#9171) (Closes: #953150)

[dgit import unpatched openldap 2.4.49+dfsg-2]

6 years agoImport openldap_2.4.49+dfsg-2.debian.tar.xz
Ryan Tandy [Thu, 5 Mar 2020 20:59:46 +0000 (20:59 +0000)]
Import openldap_2.4.49+dfsg-2.debian.tar.xz

[dgit import tarball openldap 2.4.49+dfsg-2 openldap_2.4.49+dfsg-2.debian.tar.xz]

6 years agoImport openldap_2.4.49+dfsg.orig.tar.gz
Ryan Tandy [Thu, 6 Feb 2020 18:08:12 +0000 (18:08 +0000)]
Import openldap_2.4.49+dfsg.orig.tar.gz

[dgit import orig openldap_2.4.49+dfsg.orig.tar.gz]

6 years agoMerge openldap (2.4.49+dfsg-1) import into refs/heads/workingbranch
Ryan Tandy [Thu, 6 Feb 2020 18:08:12 +0000 (18:08 +0000)]
Merge openldap (2.4.49+dfsg-1) import into refs/heads/workingbranch

6 years ago[PATCH] ITS#9086 Add debug logging for more GnuTLS errors
Ryan Tandy [Sun, 22 Sep 2019 03:08:30 +0000 (03:08 +0000)]
[PATCH] ITS#9086 Add debug logging for more GnuTLS errors

Gbp-Pq: Name ITS-9086-Add-debug-logging-for-more-GnuTLS-errors.patch

6 years agoset-maintainer-name
Debian OpenLDAP Maintainers [Thu, 6 Feb 2020 18:08:12 +0000 (18:08 +0000)]
set-maintainer-name

Gbp-Pq: Name set-maintainer-name

6 years agoITS6035-olcauthzregex-needs-restart
Debian OpenLDAP Maintainers [Thu, 6 Feb 2020 18:08:12 +0000 (18:08 +0000)]
ITS6035-olcauthzregex-needs-restart

Gbp-Pq: Name ITS6035-olcauthzregex-needs-restart.patch

6 years agodon't second-guess BDB ABI
Steve Langasek [Thu, 6 Feb 2020 18:08:12 +0000 (18:08 +0000)]
don't second-guess BDB ABI

Bug-Debian: http://bugs.debian.org/651333
Forwarded: not-needed

OpenLDAP upstream conservatively assumes that any change to the version
number of libdb can result in an API-breaking change that could impact
the database.  In Debian, we know that such changes require bumping the
library soname and changing the package name, and demand such rigor from
our package maintainers even when upstreams don't deliver; so any such
check in the source code works against the packaging system by forcing
database upgrades when we know none are required.  Disable this check
so we rely on the packaging system to do its job.

Gbp-Pq: Name no-bdb-ABI-second-guessing

6 years agoSwitch to lt_dlopenadvise() so back_perl can be opened with RTLD_GLOBAL. Open all...
Jan-Marek Glogowski [Tue, 18 May 2010 15:47:05 +0000 (17:47 +0200)]
Switch to lt_dlopenadvise() so back_perl can be opened with RTLD_GLOBAL. Open all modules with RTLD_GLOBAL, needed so that back_perl can load non-trivial Perl extensions that require symbols from back_perl.so itself.

Bug-Debian: http://bugs.debian.org/327585

Gbp-Pq: Name switch-to-lt_dlopenadvise-to-get-RTLD_GLOBAL-set.diff

6 years agodon't use AM_INIT_AUTOMAKE macro when we aren't using automake
Steve Langasek [Thu, 6 Feb 2020 18:08:12 +0000 (18:08 +0000)]
don't use AM_INIT_AUTOMAKE macro when we aren't using automake

Calling AM_INIT_AUTOMAKE() in configure.in serves no purpose if we're not
using automake, and it confuses autoreconf.  Use AC_INIT() instead.

Gbp-Pq: Name no-AM_INIT_AUTOMAKE

6 years agofix-build-top-mk
Debian OpenLDAP Maintainers [Thu, 6 Feb 2020 18:08:12 +0000 (18:08 +0000)]
fix-build-top-mk

Gbp-Pq: Name fix-build-top-mk

6 years agoadd-tlscacert-option-to-ldap-conf
Debian OpenLDAP Maintainers [Thu, 6 Feb 2020 18:08:12 +0000 (18:08 +0000)]
add-tlscacert-option-to-ldap-conf

Gbp-Pq: Name add-tlscacert-option-to-ldap-conf

6 years agoldap-conf-tls-cacertdir
Debian OpenLDAP Maintainers [Thu, 6 Feb 2020 18:08:12 +0000 (18:08 +0000)]
ldap-conf-tls-cacertdir

Gbp-Pq: Name ldap-conf-tls-cacertdir

6 years agolastbind-makefile-manpage
Debian OpenLDAP Maintainers [Thu, 6 Feb 2020 18:08:12 +0000 (18:08 +0000)]
lastbind-makefile-manpage

Gbp-Pq: Name lastbind-makefile-manpage

6 years ago[PATCH] contrib/smbk5pwd: add man page, install it too
Peter Marschall [Sun, 26 Jul 2015 13:04:26 +0000 (15:04 +0200)]
[PATCH] contrib/smbk5pwd: add man page, install it too

Add a manual page slapo-smbk5pwd.5 and update smbk5pwd's Makefile to
install the new manual page.

This patch is derived from the corresponding patch upstreamed in ITS#8205

Gbp-Pq: Name smbk5pwd-makefile-manpage

6 years agocontrib-makefiles
Debian OpenLDAP Maintainers [Thu, 6 Feb 2020 18:08:12 +0000 (18:08 +0000)]
contrib-makefiles

Gbp-Pq: Name contrib-makefiles

6 years agodo-not-second-guess-sonames
Debian OpenLDAP Maintainers [Thu, 6 Feb 2020 18:08:12 +0000 (18:08 +0000)]
do-not-second-guess-sonames

Rip out code that second-guesses the libsasl soname / Debian shlibs.  If
cyrus sasl upstream is breaking the ABI, this needs to be fixed upstream
there, not kludged around upstream here!

Debian bug #546885

Upstream ITS #6302 filed.

Gbp-Pq: Name do-not-second-guess-sonames

6 years agogetaddrinfo-is-threadsafe
Steve Langasek [Thu, 6 Feb 2020 18:08:12 +0000 (18:08 +0000)]
getaddrinfo-is-threadsafe

OpenLDAP upstream conservatively assumes that certain resolver functions
(getaddrinfo, getnameinfo, res_query, dn_expand) are not re-entrant; but we
know that the glibc implementations of these functions are thread-safe, so
we should bypass the use of this mutex.  This fixes a locking problem when
an application uses libldap and libnss-ldap is also used for hosts
resolution.

Closes Debian bug #340601.

Not suitable for forwarding upstream; might be made suitable by adding a
configure-time check for glibc and disabling the mutex only on known
thread-safe implementations.

Gbp-Pq: Name getaddrinfo-is-threadsafe

6 years agolibldap-symbol-versions
Debian OpenLDAP Maintainers [Thu, 6 Feb 2020 18:08:12 +0000 (18:08 +0000)]
libldap-symbol-versions

Add symbol versioning to the public LDAP libraries.  This is required for
library transitions, such as the current transition from 2.1 to 2.4,
since programs will sometimes have both libraries loaded by different
dependency chains during the transition.

Not yet contributed upstream.

Upstream ITS #5365 filed requesting symbol versioning for libldap and
libber.

Gbp-Pq: Name libldap-symbol-versions

6 years agosasl-default-path
Debian OpenLDAP Maintainers [Thu, 6 Feb 2020 18:08:12 +0000 (18:08 +0000)]
sasl-default-path

Add /etc/ldap/sasl2 to the SASL configuration search path.

Not submitted upstream.  Somewhat Debian-specific and probably not of
interest upstream.

Gbp-Pq: Name sasl-default-path

6 years agoindex-files-created-as-root
Debian OpenLDAP Maintainers [Thu, 6 Feb 2020 18:08:12 +0000 (18:08 +0000)]
index-files-created-as-root

Document in the man page that slapindex should be run as the same user
as slapd, and print a warning if it's run as root (since Debian defaults
to running slapd as openldap).

Not suitable for upstream in this form.  This patch needs to be reworked
to check the BerkeleyDB database ownership and only warn if running as
root with a database that's not owned by root.

Upstream ITS #5356 filed requesting better handling of this.  Current
upstream discussion leans towards putting the check into the database
backend and aborting if slapd is run as a different user than the database
owner, which is an even better fix.

Gbp-Pq: Name index-files-created-as-root

6 years agowrong-database-location
Debian OpenLDAP Maintainers [Thu, 6 Feb 2020 18:08:12 +0000 (18:08 +0000)]
wrong-database-location

Move the default slapd database location to /var/lib/ldap instead of
/var/openldap-data.

Debian-specific.

Gbp-Pq: Name wrong-database-location

6 years agoldapi-socket-place
Debian OpenLDAP Maintainers [Thu, 6 Feb 2020 18:08:12 +0000 (18:08 +0000)]
ldapi-socket-place

Move the ldapi socket to /var/run/slapd from /var/run, since /var/run
is only writable by root and slapd runs as openldap.

Debian-specific.

Gbp-Pq: Name ldapi-socket-place

6 years agoslapi-errorlog-file
Debian OpenLDAP Maintainers [Thu, 6 Feb 2020 18:08:12 +0000 (18:08 +0000)]
slapi-errorlog-file

The slapi error log file defaults to /var/errors given our setting
of --localstatedir.  Move it to /var/log/slapi-errors instead.

Debian-specific.

Gbp-Pq: Name slapi-errorlog-file

6 years agoevolution-ntlm
Debian OpenLDAP Maintainers [Thu, 6 Feb 2020 18:08:12 +0000 (18:08 +0000)]
evolution-ntlm

Patch from evolution-exchange (2.10.3).  The ldap_ntlm_bind function is
actually called by evolution-data-server, checked at version 1.12.2.
Without this patch, the Exchange addressbook integration uses simple binds
with cleartext passwords.

Russ checked with openldap-software for upstream's opinion on this patch
on 2007-12-21.  Upstream had never received it as a patch submission and
given that it's apparently only for older Exchange servers that can't do
SASL and DIGEST-MD5, it's not very appealing.

Bug#457374 filed against evolution-data-server asking if this support is
still required on 2007-12-21.

Gbp-Pq: Name evolution-ntlm

6 years agoman-slapd
Debian OpenLDAP Maintainers [Thu, 6 Feb 2020 18:08:12 +0000 (18:08 +0000)]
man-slapd

Patch the slapd man page to not refer to a header file that isn't
installed with the slapd package and to reference the correct path
for slapd.

Debian-specific.

Gbp-Pq: Name man-slapd

6 years agoopenldap (2.4.49+dfsg-1) unstable; urgency=medium
Ryan Tandy [Thu, 6 Feb 2020 18:08:12 +0000 (18:08 +0000)]
openldap (2.4.49+dfsg-1) unstable; urgency=medium

  * New upstream release.
    - Drop patch no-gnutls_global_set_mutex, applied upstream.
  * When validating the DNS domain chosen for slapd's default suffix, set
    LC_COLLATE explicitly for grep to ensure character ranges behave as
    expected. Thanks to Fredrik Roubert. (Closes: #940908)
  * Backport proposed upstream patch to emit detailed messages about errors in
    the TLS configuration. (ITS#9086) (Closes: #837341)
  * slapd.scripts-common: Delete unused copy_example_DB_CONFIG function.
  * Remove debconf support for choosing a database backend. Always use the
    LMDB backend for new installs, as recommended by upstream.
  * Remove the empty olcBackend section from the default configuration.
  * Remove the unused slapd.conf template from /usr/share/slapd. Continue
    shipping it as an example in /usr/share/doc/slapd.
  * Fix a typo in index-files-created-as-root patch.
    Thanks to Quanah Gibson-Mount.
  * Annotate slapd's Depends on perl with :any. Fixes installation of
    foreign-arch slapd. Thanks to Andreas Hasenack.
  * Rename 'stage1' build profile to 'pkg.openldap.noslapd'.
    Thanks to Helmut Grohne. (Closes: #949722)
  * Drop Build-Conflicts: libicu-dev as upstream's configure no longer tests
    for or links with libicu.
  * Note ITS#9126 recommendation in slapd.NEWS.
  * Update Standards-Version to 4.5.0; no changes required.

[dgit import unpatched openldap 2.4.49+dfsg-1]

6 years agoImport openldap_2.4.49+dfsg-1.debian.tar.xz
Ryan Tandy [Thu, 6 Feb 2020 18:08:12 +0000 (18:08 +0000)]
Import openldap_2.4.49+dfsg-1.debian.tar.xz

[dgit import tarball openldap 2.4.49+dfsg-1 openldap_2.4.49+dfsg-1.debian.tar.xz]

6 years agoMerge openldap (2.4.48+dfsg-1) import into refs/heads/workingbranch
Ryan Tandy [Thu, 25 Jul 2019 15:32:00 +0000 (16:32 +0100)]
Merge openldap (2.4.48+dfsg-1) import into refs/heads/workingbranch

6 years agono-gnutls_global_set_mutex
Debian OpenLDAP Maintainers [Thu, 25 Jul 2019 15:32:00 +0000 (16:32 +0100)]
no-gnutls_global_set_mutex

Gbp-Pq: Name no-gnutls_global_set_mutex

6 years agoset-maintainer-name
Debian OpenLDAP Maintainers [Thu, 25 Jul 2019 15:32:00 +0000 (16:32 +0100)]
set-maintainer-name

Gbp-Pq: Name set-maintainer-name

6 years agoITS6035-olcauthzregex-needs-restart
Debian OpenLDAP Maintainers [Thu, 25 Jul 2019 15:32:00 +0000 (16:32 +0100)]
ITS6035-olcauthzregex-needs-restart

Gbp-Pq: Name ITS6035-olcauthzregex-needs-restart.patch

6 years agono-bdb-ABI-second-guessing
Debian OpenLDAP Maintainers [Thu, 25 Jul 2019 15:32:00 +0000 (16:32 +0100)]
no-bdb-ABI-second-guessing

Gbp-Pq: Name no-bdb-ABI-second-guessing

6 years agoSwitch to lt_dlopenadvise() so back_perl can be opened with RTLD_GLOBAL. Open all...
Jan-Marek Glogowski [Tue, 18 May 2010 15:47:05 +0000 (17:47 +0200)]
Switch to lt_dlopenadvise() so back_perl can be opened with RTLD_GLOBAL. Open all modules with RTLD_GLOBAL, needed so that back_perl can load non-trivial Perl extensions that require symbols from back_perl.so itself.

Gbp-Pq: Name switch-to-lt_dlopenadvise-to-get-RTLD_GLOBAL-set.diff

6 years agono-AM_INIT_AUTOMAKE
Debian OpenLDAP Maintainers [Thu, 25 Jul 2019 15:32:00 +0000 (16:32 +0100)]
no-AM_INIT_AUTOMAKE

Gbp-Pq: Name no-AM_INIT_AUTOMAKE

6 years agofix-build-top-mk
Debian OpenLDAP Maintainers [Thu, 25 Jul 2019 15:32:00 +0000 (16:32 +0100)]
fix-build-top-mk

Gbp-Pq: Name fix-build-top-mk

6 years agoadd-tlscacert-option-to-ldap-conf
Debian OpenLDAP Maintainers [Thu, 25 Jul 2019 15:32:00 +0000 (16:32 +0100)]
add-tlscacert-option-to-ldap-conf

Gbp-Pq: Name add-tlscacert-option-to-ldap-conf

6 years agoldap-conf-tls-cacertdir
Debian OpenLDAP Maintainers [Thu, 25 Jul 2019 15:32:00 +0000 (16:32 +0100)]
ldap-conf-tls-cacertdir

Gbp-Pq: Name ldap-conf-tls-cacertdir

6 years agolastbind-makefile-manpage
Debian OpenLDAP Maintainers [Thu, 25 Jul 2019 15:32:00 +0000 (16:32 +0100)]
lastbind-makefile-manpage

Gbp-Pq: Name lastbind-makefile-manpage

6 years agocontrib/smbk5pwd: add man page, install it too
Peter Marschall [Sun, 26 Jul 2015 13:04:26 +0000 (15:04 +0200)]
contrib/smbk5pwd: add man page, install it too

Add a manual page slapo-smbk5pwd.5 and update smbk5pwd's Makefile to
install the new manual page.

This patch is derived from the corresponding patch upstreamed in ITS#8205

Gbp-Pq: Name smbk5pwd-makefile-manpage

6 years agocontrib-makefiles
Debian OpenLDAP Maintainers [Thu, 25 Jul 2019 15:32:00 +0000 (16:32 +0100)]
contrib-makefiles

Gbp-Pq: Name contrib-makefiles

6 years agodo-not-second-guess-sonames
Debian OpenLDAP Maintainers [Thu, 25 Jul 2019 15:32:00 +0000 (16:32 +0100)]
do-not-second-guess-sonames

Rip out code that second-guesses the libsasl soname / Debian shlibs.  If
cyrus sasl upstream is breaking the ABI, this needs to be fixed upstream
there, not kludged around upstream here!

Debian bug #546885

Upstream ITS #6302 filed.

Gbp-Pq: Name do-not-second-guess-sonames

6 years agogetaddrinfo-is-threadsafe
Debian OpenLDAP Maintainers [Thu, 25 Jul 2019 15:32:00 +0000 (16:32 +0100)]
getaddrinfo-is-threadsafe

OpenLDAP upstream conservatively assumes that certain resolver functions
(getaddrinfo, getnameinfo, res_query, dn_expand) are not re-entrant; but we
know that the glibc implementations of these functions are thread-safe, so
we should bypass the use of this mutex.  This fixes a locking problem when
an application uses libldap and libnss-ldap is also used for hosts
resolution.

Closes Debian bug #340601.

Not suitable for forwarding upstream; might be made suitable by adding a
configure-time check for glibc and disabling the mutex only on known
thread-safe implementations.

Gbp-Pq: Name getaddrinfo-is-threadsafe

6 years agolibldap-symbol-versions
Debian OpenLDAP Maintainers [Thu, 25 Jul 2019 15:32:00 +0000 (16:32 +0100)]
libldap-symbol-versions

Add symbol versioning to the public LDAP libraries.  This is required for
library transitions, such as the current transition from 2.1 to 2.4,
since programs will sometimes have both libraries loaded by different
dependency chains during the transition.

Not yet contributed upstream.

Upstream ITS #5365 filed requesting symbol versioning for libldap and
libber.

Gbp-Pq: Name libldap-symbol-versions

6 years agosasl-default-path
Debian OpenLDAP Maintainers [Thu, 25 Jul 2019 15:32:00 +0000 (16:32 +0100)]
sasl-default-path

Add /etc/ldap/sasl2 to the SASL configuration search path.

Not submitted upstream.  Somewhat Debian-specific and probably not of
interest upstream.

Gbp-Pq: Name sasl-default-path

6 years agoindex-files-created-as-root
Debian OpenLDAP Maintainers [Thu, 25 Jul 2019 15:32:00 +0000 (16:32 +0100)]
index-files-created-as-root

Document in the man page that slapindex should be run as the same user
as slapd, and print a warning if it's run as root (since Debian defaults
to running slapd as openldap).

Not suitable for upstream in this form.  This patch needs to be reworked
to check the BerkeleyDB database ownership and only warn if running as
root with a database that's not owned by root.

Upstream ITS #5356 filed requesting better handling of this.  Current
upstream discussion leans towards putting the check into the database
backend and aborting if slapd is run as a different user than the database
owner, which is an even better fix.

Gbp-Pq: Name index-files-created-as-root

6 years agowrong-database-location
Debian OpenLDAP Maintainers [Thu, 25 Jul 2019 15:32:00 +0000 (16:32 +0100)]
wrong-database-location

Move the default slapd database location to /var/lib/ldap instead of
/var/openldap-data.

Debian-specific.

Gbp-Pq: Name wrong-database-location

6 years agoldapi-socket-place
Debian OpenLDAP Maintainers [Thu, 25 Jul 2019 15:32:00 +0000 (16:32 +0100)]
ldapi-socket-place

Move the ldapi socket to /var/run/slapd from /var/run, since /var/run
is only writable by root and slapd runs as openldap.

Debian-specific.

Gbp-Pq: Name ldapi-socket-place

6 years agoslapi-errorlog-file
Debian OpenLDAP Maintainers [Thu, 25 Jul 2019 15:32:00 +0000 (16:32 +0100)]
slapi-errorlog-file

The slapi error log file defaults to /var/errors given our setting
of --localstatedir.  Move it to /var/log/slapi-errors instead.

Debian-specific.

Gbp-Pq: Name slapi-errorlog-file